package org.mwiki.scala.bot.http.actions

/**
 * Created by IntelliJ IDEA.
 * User: ilya
 * Date: Mar 28, 2010
 * Time: 10:39:59 PM
 * To change this template use File | Settings | File Templates.
 */

object Auth {

  def login(): Map[String, String] = {
    val user = "Ilya"
    val password = Console.readLine("password:");

    login(user, password)

  }

  def login(user: String, password: String) =
    Map("action" -> "login", "lgname" -> user, "lgpassword" -> password)

  def logout() = Map("action" -> "logout")

}